-- 计算是否需要显示血量不足时的屏幕特效

return function(user)
    local hp = user:getHp();
    local maxHp = user:getMaxHp();
    local hpRate = 100;
    if maxHp ~= 0 then
        hpRate = hp / maxHp * 100;
    end

    return hp <= 10 or hpRate <= 5;
end
